package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TLatedeductions;

public interface LatedeductionsMapper {

	/**
	 * 获取迟到规则信息
	 * @return
	 */
	public List<TLatedeductions> getTLatedeductionsList(@Param("organizationid")int organizationid);
	/**
	 * 修改迟到规则信息
	 * @param late
	 * @return
	 */
	public int updateTLatedeductions(TLatedeductions late);
	/**
	 * 批量新增迟到规则信息
	 * @param list
	 * @return
	 */
	public int insertTLatedeductionsList(@Param("lalist")List<TLatedeductions> lalist);
	/**
	 * 删除迟到规则信息
	 * @param late
	 * @return
	 */
	public int deleteTLatedeductions(@Param("ids")int[] ids);
	/**
	 * 获取迟到规则中最大ID信息
	 * @return
	 */
	public int getTLatedeductionsMaximumId();
	/**
	 * 删除迟到规则信息
	 * @param late
	 * @return
	 */
	public int deleteTLatedeductionss(@Param("type")int type,@Param("calculationtype")int calculationtype);
	
	public List<TLatedeductions> getTLEarlyretreatList(@Param("organizationid")int organizationid);
	
	public int deleteEarlyretreat(@Param("type")int type,@Param("calculationtype")int calculationtype);
}
